rem @echo off
cls

set LANG=C

echo Extracting texts from src dir to d:\geoblock\default.po

dxgettext -b d:\geoblock\source --delphi --useignorepo -r

echo Updating Russian translations
pushd d:\geoblock\locale\ru\LC_MESSAGES
copy default.po default-backup.po
ren default.po default-old.po

echo Merging
msgmergedx default-old.po d:\geoblock\default.po -o default.po
del default-old.po
del default-backup.po
copy default.po geoblock.po

popd
del d:\geoblock\default.po

pause

